package structures;

import java.io.Serializable;

import exception.IBToolsException;
import analyzers.ExposedAnalyzer;
import structures.xmltable.ServiceParameterTable;

public class BagContent implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7251959601543695517L;
	
	private ServiceParameterTable bagTable;
	private String content;
	
	public ServiceParameterTable getBagTable() {
		return bagTable;
	}
	public void setBagTable(ServiceParameterTable bagTable) {
		this.bagTable = bagTable;
	}
	
	public void loadFromContent(String content) throws IBToolsException{
		this.content = content;
		bagTable = ExposedAnalyzer.analyze(null, content);
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
}
